home *** CD-ROM | disk | FTP | other *** search
- class §#21§ extends MovieClip
- {
- static var §#53§ = false;
- var _playing = true;
- var _flippedX = false;
- var _flippedY = false;
- function §#21§()
- {
- super();
- }
- function __resolve(name)
- {
- var _loc3_ = this["#2"]() + "can\'t resolve method or property \"" + name + "\"";
- arguments.shift();
- if(arguments.length > 0)
- {
- _loc3_ += " with arguments [" + arguments.join(", ") + "]";
- }
- eval("#0").log(_loc3_);
- }
- function §#2§()
- {
- return "MovieClipWrapper (" + this._name + "f" + this._currentframe + "/" + this._totalframes + " p" + this._playing + "): ";
- }
- function toString()
- {
- var _loc3_ = "[MovieClipWrapper " + this._name + " ";
- _loc3_ += "frame=" + this._currentframe + "/" + this._totalframes + " ";
- _loc3_ += "x=" + this._x + " y=" + this._y + " w=" + this._width + " h=" + this._height + " ";
- _loc3_ += "xscale=" + this._xscale + " yscale=" + this._yscale;
- _loc3_ += "alpha=" + this._alpha + " visible=" + this._visible + " ";
- _loc3_ += "depth=" + this.getDepth() + " ";
- if(this._url != _root._url)
- {
- _loc3_ += "url=" + this._url + " ";
- }
- _loc3_ += "]";
- return _loc3_;
- }
- function §#311§()
- {
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "#311");
- }
- this._x = Math.round(this._x);
- this._y = Math.round(this._y);
- }
- function §#458§(§#103§)
- {
- if(!this._flippedX)
- {
- this._flippedX = true;
- this._xscale *= -1;
- if(§#103§)
- {
- this._x *= -1;
- }
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "flipX: " + this._xscale);
- }
- }
- }
- function §#439§(§#103§)
- {
- if(this._flippedX)
- {
- this._flippedX = false;
- this._xscale *= -1;
- if(§#103§)
- {
- this._x *= -1;
- }
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "unflipX: " + this._xscale);
- }
- }
- }
- function §#459§(§#103§)
- {
- if(!this._flippedY)
- {
- this._flippedY = true;
- this._yscale *= -1;
- if(§#103§)
- {
- this._y *= -1;
- }
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "flipY: " + this._xscale);
- }
- }
- }
- function §#440§(§#103§)
- {
- if(this._flippedY)
- {
- this._flippedY = false;
- this._yscale *= -1;
- if(§#103§)
- {
- this._y *= -1;
- }
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "unflipY: " + this._xscale);
- }
- }
- }
- function play()
- {
- super.play();
- if(!this._playing)
- {
- this.onPlay();
- }
- this._playing = true;
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "play");
- }
- }
- function gotoAndPlay(§#284§)
- {
- if(!this["#229"](§#284§))
- {
- return undefined;
- }
- super.gotoAndPlay(§#284§);
- if(!this._playing)
- {
- this.onPlay();
- }
- this._playing = true;
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "gotoAndPlay(" + §#284§ + ")");
- }
- }
- function stop()
- {
- super.stop();
- if(this._playing)
- {
- this.onStop();
- }
- this._playing = false;
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "stop");
- }
- }
- function gotoAndStop(§#284§)
- {
- if(!this["#229"](§#284§))
- {
- return undefined;
- }
- super.gotoAndStop(§#284§);
- if(this._playing)
- {
- this.onStop();
- }
- this._playing = false;
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "gotoAndStop(" + §#284§ + ")");
- }
- }
- function §#34§()
- {
- return this._playing;
- }
- function §#229§(§#284§)
- {
- if(typeof §#284§ == "number")
- {
- if(§#284§ < 1 || §#284§ > this._totalframes)
- {
- eval("#0").log(this["#2"]() + "invalid frame number " + §#284§);
- return false;
- }
- return true;
- }
- return true;
- }
- function onPlay()
- {
- }
- function onStop()
- {
- }
- function getFrameForLabel(label)
- {
- if(label == undefined)
- {
- return undefined;
- }
- var _loc3_ = this._currentframe;
- super.gotoAndStop(label);
- var _loc4_ = this._currentframe;
- if(this._playing)
- {
- super.gotoAndPlay(_loc3_);
- }
- else
- {
- super.gotoAndStop(_loc3_);
- }
- return _loc4_;
- }
- function getOffsetFromLabel(label)
- {
- if(label == undefined)
- {
- return undefined;
- }
- var _loc2_ = this.getFrameForLabel(label);
- return this._currentframe - _loc2_;
- }
- function removeMovieClip()
- {
- if(eval("#21")["#53"])
- {
- eval("#0").log(this["#2"]() + "removeMovieClip");
- }
- this.onRemove();
- super.removeMovieClip();
- }
- function onRemove()
- {
- }
- }
-